package bjut.core.reader;

import bjut.core.exception.BeansException;
import bjut.core.registry.BeanDefinitionRegistry;
import bjut.core.resource.Resource;
import bjut.core.resource.ResourceLoader;

/**
 * @Author: zhuzhiming
 * @Date: 2022/4/19 0:17
 */
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;

}
